package com.project.myPackage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.myPackage.entity.Favorites;
import com.project.myPackage.mapper.FavoritesMapper;
import com.project.myPackage.service.FavoritesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FavoritesServiceImpl extends ServiceImpl<FavoritesMapper, Favorites> implements FavoritesService {
    @Autowired
    private FavoritesMapper favoritesMapper;
   public List<Map<String, Object>> getList(Integer user_id){
        return favoritesMapper.getList(user_id);
    }
}
